//
//  Cell_Signup.m
//  yjw-winner
//
//  Created by 王春辉 on 2018/9/13.
//  Copyright © 2018年 Shanghai decade financial information service co., LTD. All rights reserved.
//

#import "Cell_Signup.h"

@interface Cell_Signup ()
@property (nonatomic, strong) id model;
@property (nonatomic, copy) CallBackCellSignupBlock block;
@end
@implementation Cell_Signup

/**
 刷新数据并添加回调函数
 
 @param model model
 @param block block
 */
- (void)refreshWithModel:(id)model CallBackBlock:(CallBackCellSignupBlock)block {
    self.model = model;
    self.block = block;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.signupButton.layer.masksToBounds = YES;
    self.signupButton.layer.cornerRadius = self.signupButton.mj_h * 0.5;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark --mark EVENT

- (IBAction)signupButtonClick:(UIButton *)sender {
    if (self.block) {
        self.block(self.model);
    }
}

@end
